﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="调房.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    <style type="text/css">
    .auto-style1 {
        font-size: x-large;
    }
    .auto-style2 {
        font-size: large;
        background-color: #FFFFFF;
    }
</style>
    
</asp:Content>

<asp:Content ID="Content2" runat="server" contentplaceholderid="right">
                            <table style="WIDTH: 703px; HEIGHT: 51px" cellSpacing="0" borderColorDark="#cccccc" cellPadding="5" align="center" borderColorLight="#000000" border="1">
				    
    				<tr bgColor="#cccccc">
					<td vAlign="center" align="middle" bgcolor="Maroon"   colSpan="2"><FONT size="6"><STRONG><FONT face="楷体_GB2312" color="yellow"  > 酒店客房管理</FONT> <FONT size="4"  color="yellow">--客户调房</FONT></STRONG></FONT>
					</td>
				</tr> </table>
                        <br /><center>
                        请输入客户房间号：<asp:TextBox ID="tbSeart" runat="server" Width="160px" Height="20px"></asp:TextBox>
                        &nbsp;
                        <asp:Button ID="btnSeart" runat="server" Text="搜索" Width="70px" Height="25px" CausesValidation="False" OnClick="btnSeart_Click"   />
                    <br />
                    <br />
                    <br />
        </center>

    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView2_RowCancelingEdit" OnRowDataBound="GridView2_RowDataBound" OnRowEditing="GridView2_RowEditing" OnRowUpdating="GridView2_RowUpdating" OnSorting="GridView2_Sorting" DataKeyNames="G_number" OnSelectedIndexChanged="GridView2_SelectedIndexChanged">
        <Columns>
            <asp:BoundField DataField="U_name" HeaderText="客户姓名" />
            <asp:BoundField DataField="U_number" HeaderText="客户证件号" />
            <asp:BoundField DataField="U_phone" HeaderText="电话号码" />
            <asp:BoundField DataField="U_rdate" HeaderText="入住日期" />
            <asp:BoundField DataField="U_tdate" HeaderText="退房日期" />
            <asp:BoundField DataField="U_prnum" HeaderText="人数" />
            <asp:BoundField DataField="G_number" HeaderText="房间号" />
            <asp:BoundField DataField="G_type" HeaderText="类型" />
            <asp:BoundField DataField="G_free" HeaderText="是否空闲" />
            <asp:CommandField EditText="换房" ShowEditButton="True" />
        </Columns>
    </asp:GridView>

                        <br />
<br />
<strong><span class="auto-style2">所有房间信息：</span><span class="auto-style1"><br />
</span></strong>
                        <br />
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="556px">
    <Columns>
        <asp:BoundField DataField="G_number" HeaderText="房间号" />
        <asp:BoundField DataField="G_price" HeaderText="价格" />
        <asp:BoundField DataField="G_type" HeaderText="房间类型" />
        <asp:BoundField DataField="G_money" HeaderText="押金" />
        <asp:BoundField DataField="G_free" HeaderText="是否空闲" />
    </Columns>
</asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HotelConnectionString3 %>" SelectCommand="SELECT * FROM [Guest]"></asp:SqlDataSource>
                        <br />
    <tr vAlign="center" align="middle" bgColor="#eeeeee">
					<td bgColor="#eeeeee" colSpan="2" class="auto-style4">
						<div align="center"><FONT face="宋体">
								<DIV align="center"><FONT face="宋体"><A href="首页.aspx">返回</A> </FONT>
								</DIV>
							</FONT>
						</div>
					</td>
				</tr>
                        <br />

                    
</asp:Content>


